const router=require('koa-router')();
const user=require('../controller/user')
const informationCard=require('../controller/informationCard')
const chat=require('../controller/chat')
router.post('/login',user.login)
router.post('/register',user.register)
router.post('/changePass',user.changePass)
router.post('/delAccount',user.delAccount)
router.post('/saveSetting',user.saveSetting)
router.post('/publish',user.publish)
router.get('/getUptoken',user.getUptoken)
router.get('/getInfoCard',informationCard.getInfoCard)
router.get('/selectItem',informationCard.selectInfoCard)
router.post('/delpublish',informationCard.deleteInfoCard)
router.get('/getHistoryList',chat.getHistoryList)
module.exports=router